<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="lib/vue.global.js"></script>
</head>
<body>
  <div id="root">
    {{ count.value }} 
  </div>
</body>
<script type="module">
  const { createApp, reactive, ref, onMounted } = window.Vue
  const app = createApp({
    setup(props) {
      // ref一般写简单值,但并不是说不能写复杂的，比如对象
      const count = ref({
        value: 100
      })

      onMounted(() => {
        console.log(count.value)
        count.value.value = 200
      })
      return {
        count
      }
    }
  })

  app.mount('#root')
</script>
</html>